//
//  ApiUpdateProdStatus.m
//  ios-supplier
//
//  Created by 梁泽 on 16/3/4.
//  Copyright © 2016年 feynmanyuan. All rights reserved.
//

#import "ApiUpdateProdStatus.h"
@interface ApiUpdateProdStatus()
@property (nonatomic,assign) NSInteger mpId;

@property (nonatomic,assign) NSInteger type;
@end
@implementation ApiUpdateProdStatus
- (instancetype) initWithMpId:(NSInteger)mpId oldStatus:(NSInteger)old newStatus:(NSInteger)new saleType:(NSInteger)type{
    self = [super init];
    _mpId = mpId;
    _old  = old;
    _newStatus  = old;
    _type = type;
    return self;
}
- (NSString*) requestUrl{
    return @"/back-product/updateMerProdStatus.do";
}
- (id) requestArgument{
    return @{
             @"ut" : [UserInfo currentUser].ut,
             @"mpId" : @(_mpId),
             @"oldStatus" : @(_old),
             @"newStatus" : @(_newStatus),
             @"saleType"  : @(_type)
             };
}
@end
